<!DOCTYPE html>
<html lang="zh" style="font-size: 12px;">
<head>
    <meta charset="UTF-8">
    <title>hades-gant</title>
    <style>
        html, body {
            font-family: "微软雅黑 Regular", serif;
        }
    </style>
</head>
<body>
<div class="app">123123</div>
<button onclick="show()">测试</button>
</body>
<script>
    if (window.self == window.top) {
        window._dialog = new Dialog();
    } else {
        window._dialog = window.top._dialog;
    }


    function show() {
        _dialog.show({
            title: '标题',
            name: 'test',
            height: '80%',
            width: '80%',
            src: 'http://localhost:8080/test',
            closeHandler: (data) => {
                console.log(data)
            }
        });
    }
</script>
</html>
